# encoding:utf-8
"""
===============***===============
Auther : Hsir
Date   : 2022 - 11 - 22   14:09
File   : constants.py
===============***===============
"""
import os

"""
动态获取路径
"""


# 获取工程根目录
BASE_DIR = os.path.dirname(os.path.dirname(__file__))     # 大写代表常量，表明希望他人不要更改
# print(BASE_DIR)  # D:\TOOLS\WorkSpace\autotest03

# 获取测试数据所在目录
DATA_DIR = os.path.join(BASE_DIR, "data")    # join拼接
# print(DATA_DIR)   # D:\TOOLS\WorkSpace\autotest03\data

# 获取ini配置文件所在目录
INI_DIR = os.path.join(BASE_DIR, "cof/config.ini")
# print(INI_DIR)  # D:\TOOLS\WorkSpace\autotest03\cof/config.ini

# 日志输出的路径
INFO_LOG = os.path.join(BASE_DIR, "logs/info.logs")
ERROR_LOG = os.path.join(BASE_DIR, "logs/error.logs")
# print(INFO_LOG)

# 报告输出目录
REPORT_JSON = os.path.join(BASE_DIR, "reports/allure_json")
REPORT_HTML = os.path.join(BASE_DIR, "reports/allure_html")

# 获取用例目录
CASE_DIR = os.path.join(BASE_DIR, "test_cases")
# print(CASE_DIR)
